<%@ page import="com.neuedu.entity.User" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/11/9
  Time: 14:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%--    输出一段内容 --%>
<%
    //controller --toEdit  edit.jsp
    User user =  new User();
    user.setUsername("abcdef");
    request.setAttribute("user",user);
    request.setAttribute("html","<h1>我是html文档</h1>");
    request.setAttribute("js","<script>alert(11)</script>");
%>

 c:out 输出标签
username:<input type="text" value="<c:out value="${user.username}" />"> <br>
html:${html} <br>
html:<c:out value="${html}" escapeXml="true"/> <br>
html:<c:out value="${html}" escapeXml="false"/> <br>

${js}
<c:out value="${js}"  /> <br>



<c:import  var="data" url="http://www.baidu.com"/>
<c:out value="${data}"/>



</body>
</html>
